package com.dinadi.yidi.utils;

/**
 * author: JiaYu.He
 * Date: 2017/12/20  数据库换行
 * Time: 17:59
 */

public class StringChange {
    static  StringBuffer sb=new StringBuffer();
    static char[] c;
    public static String stringChang(String s){
        c=s.toCharArray();
        for(int i=0;i<c.length;i++){
            if(c[i]!='\\'){
                if(c[i]!='n'){
                    sb.append(c[i]);
                }else{
                    sb.append("");
                }
            }else{
                sb.append("\n");
            }
        }
        return sb.toString();
    }
}
